package com.it.a07threadmethod4;

public class MyThread extends Thread {
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(getName() + " " + i);
            Thread.yield();
        }
    }
}
